import request from '@/utils/request'

// 查询文件上传列表
export function listInfo(query) {
  return request({
    url: '/system/info/list',
    method: 'get',
    params: query
  })
}


export function changeName() {
  return request({
    url: '/system/info/changeName',
    method: 'get'
  })
}


// 查询文件上传详细
export function getInfo(engFileId) {
  return request({
    url: '/system/info/' + engFileId,
    method: 'get'
  })
}

// 新增文件上传
export function addInfo(data) {
  return request({
    url: '/system/info',
    method: 'post',
    data: data
  })
}

// 修改文件上传
export function updateInfo(data) {
  return request({
    url: '/system/info',
    method: 'put',
    data: data
  })
}

// 删除文件上传
export function delInfo(engFileId) {
  return request({
    url: '/system/info/' + engFileId,
    method: 'delete'
  })
}

export function getQuarterly(){
  return request({
    url: '/system/info/getQuarterly',
    method: 'get'
  })
}
